#!/usr/bin/env python3.3

from euler import triangular

n=c=5
while c<500:
  n+=1
  x=triangular(n)
  c=sum(1 for i in range(1,int(x**0.5)+1) if x%i==0)
print(x)
